.class final Lnet/tsapps/topdeals/bj;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/DetailActitivty;

.field private final synthetic b:Lnet/tsapps/topdeals/objects/Xtra;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DetailActitivty;Lnet/tsapps/topdeals/objects/Xtra;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/bj;->a:Lnet/tsapps/topdeals/DetailActitivty;

    iput-object p2, p0, Lnet/tsapps/topdeals/bj;->b:Lnet/tsapps/topdeals/objects/Xtra;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 4

    iget-object v0, p0, Lnet/tsapps/topdeals/bj;->b:Lnet/tsapps/topdeals/objects/Xtra;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Xtra;->e:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/bj;->b:Lnet/tsapps/topdeals/objects/Xtra;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Xtra;->e:Ljava/lang/String;

    :goto_0
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-direct {v1, v2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bj;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/bj;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->h(Lnet/tsapps/topdeals/DetailActitivty;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lnet/tsapps/topdeals/bj;->b:Lnet/tsapps/topdeals/objects/Xtra;

    iget-wide v1, v1, Lnet/tsapps/topdeals/objects/Xtra;->a:J

    const v3, 0x7f0b0006

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "?id="

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v0, p0, Lnet/tsapps/topdeals/bj;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->h(Lnet/tsapps/topdeals/DetailActitivty;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "Beim Aufrufen des Links ist ein Fehler aufgetreten"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1
.end method
